<?php
/*
 * David Bray
 * BrayWorth Pty Ltd
 * e. david@brayworth.com.au
 *
 * MIT License
 *
*/

namespace bravedave\dvc\html;

abstract class tableSection extends element {
  protected $_rows;

  public function __construct($tag) {

    parent::__construct($tag);
    $this->_rows = [];
  }

  public function tr($content = null, $attributes = null) {

    $tr = new tr($content, $attributes);
    $this->_rows[] = $tr;
    $this->appendChild($tr);

    return ($tr);
  }

  public function row($content = null, $attributes = null) {

    return ($this->tr($content, $attributes));
  }
}
